package com.example.acountingappliaction;

/**
 * 用户数据模型
 */
public class User {
    private int id;             // 自增主键
    private String username;    // 用户名（唯一）
    private String password;    // 密码（实际项目中建议加密存储）

    // 构造方法
    public User(String username, String password) {
        this.username = username;
        this.password = password;
    }

    // getter和setter
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}